package com.ruoyi.cat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 媒体数据对象 ad_medium_data
 * 
 * @author ruoyi
 * @date 2025-05-13
 */
public class AdMediumData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 媒体名称 */
    @Excel(name = "媒体名称")
    private String mediaName;

    /** 链接 */
    @Excel(name = "链接")
    private String url;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dayTime;

    /** 访问量 */
    @Excel(name = "访问量")
    private Long pv;

    /** 访问ip */
    @Excel(name = "访问ip")
    private Long uv;

    /** 媒体广告id */
    @Excel(name = "媒体广告id")
    private Long mediumId;

    private String position;

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMediaName(String mediaName) 
    {
        this.mediaName = mediaName;
    }

    public String getMediaName() 
    {
        return mediaName;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setDayTime(Date dayTime) 
    {
        this.dayTime = dayTime;
    }

    public Date getDayTime() 
    {
        return dayTime;
    }
    public void setPv(Long pv) 
    {
        this.pv = pv;
    }

    public Long getPv() 
    {
        return pv;
    }
    public void setUv(Long uv) 
    {
        this.uv = uv;
    }

    public Long getUv() 
    {
        return uv;
    }
    public void setMediumId(Long mediumId) 
    {
        this.mediumId = mediumId;
    }

    public Long getMediumId() 
    {
        return mediumId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mediaName", getMediaName())
            .append("url", getUrl())
            .append("dayTime", getDayTime())
            .append("pv", getPv())
            .append("uv", getUv())
            .append("mediumId", getMediumId())
            .toString();
    }
}
